#!/bin/bash

echo "this is a shell print file's number in the local dir."

ls > filename.log

y=1

for i in $( cat filename.log )
	do
		echo "the file number is $y"
		y=$(( $y + 1 ))
	done

rm -rf filename.log


